<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');
		echo $this->Html->css('reset');
		echo $this->Html->css('common');
		echo $this->Html->css('dashboard');
		echo $this->Html->css('ie');
		echo $this->Html->script('jquery');
		echo $this->Html->script('header');
		echo $this->Html->script('dashboard');
		echo $this->Html->script('blog');
		echo $scripts_for_layout;
	?>
</head>
<body>
	<div id="container">
		<div id="header">
			<div class="wrap">
				<h1><a id="logo" href="/dorimeme/dashboard">Dorime.me</a></h1>
				<?php echo $form->create('Posts',array('action'=>'search')); ?>
				<fieldset>
					<legend>Search</legend>
				<?php echo $form->input('keyword',array('value'=>'Search')); ?>				
					<div class="submit">
						<input id="searchBut" type="submit" value="Search" />
					</div>				
				<?php echo $form->End(); ?>
				</fieldset>
			<ul id="nav">
				<li><a href="/dorimeme/dashboard">Dashboard</a></li>
				<li><a href="/dorimeme/dorimeblog">Blog</a></li>
				<li><a href="/dorimeme/users/Settings">Settings</a></li>
				<li><a href="/dorimeme/Explore">Explore</a></li>
				<li><a href="/dorimeme/help">Help</a></li>
				<li><a href="/dorimeme/users/logout">Logout</a></li>
			</ul><!--End nav-->
			<ul class="submenu">
				<?php
					foreach($dorimeBlogs as $dorimeBlog){
						echo '<li><a href="/dorimeme/dorimeblog/index/'.$dorimeBlog['id'].'">'.$dorimeBlog['title'].'</a></li>';
					}
				?>
				<li><a href="/dorimeme/blogs/add">Add New Blog</a></li>
			</ul>
			</div><!--End wrap-->
		</div><!--End Header-->
		<div id="content" class="dorimeblog">
			<script type="text/javascript">
				var nav = new NavState("#nav");	
				nav.changeCurrent(1);
			</script>
			<div id="stream">
				<div class="stream-outer">
					<ul id="tab">
						<li><a href="/dorimeme/dorimeblog/index/<?php echo $blogId ?>" class="tabCurrent">TimeLine</a></li>
						<li><a href="/dorimeme/users/messages">Message</a></li>
						<li id="showFavor"><a href="/dorimeme/users/favors">Favor</a></li>
						<li style="display:none"><a href="/dorimeme/users/list">Lists</a></li>
						<li><a href="/dorimeme/tags/search">Search</a></li>
						<li><a href="/dorimeme/posts/add">New Post</a></li>
					</ul><!--End tab-->
					<div id="noti">
						<p><span>20</span> new messages</p>
					</div><!--End noti-->
				</div><!--End stream-outer-->
				<div class="thread-outer">
					<div id="thread">
						<?php echo $content_for_layout; ?>
					</div><!--End Thread-->
				<div class="clear"></div>
				</div><!--End Thread-outer -->
			<div class="clear"></div>
			</div>
			<div id="sideBar">
				<div id="bgBox"></div>
				<div id="sideBarOuter">
					<div id="sideBarContent">
						<div id="profile">
							<a id="proImg" href="users/settings"><img src="/dorimeme/app/webroot/img/usericon/<?php echo $username ?>.jpg" /></a>
							<a id="proName" href="users/settings"><?php echo $username ?></a>
						</div>
						<div class="box first">
							<div class="boxTop"></div>
							<ul class="boxContent">
								<li class="first"><a href="/dorimeme/blogs/index/<?php echo $blogId ?>" class="link">Open Blog 001</a></li>
								<li ><a href="/dorimeme/dorimeblog/settings/<?php echo $blogId ?>" class="setting">Settings</a></li>
								<li class="last"><a href="/dorimeme/blogs/customize" class="customize">Customize My Blog</a></li>
							</ul>
							<div class="boxBottom"></div>
						</div><!--End box-->
						<div class="box" id="blogInfo">
							<div class="boxTop"></div>
							<ul class="boxContent">
								<li class="current first"><a href="/dorimeme/dorimeblog/index/<?php echo $blogId ?>" class="post">Posts</a></li>
								<li><a href="/dorimeme/dorimeblog/followers/<?php echo $blogId ?>" class="follower">Followers <?php echo $followed ?></a></li>
								<li class="last"><a href="/dorimeme/dorimeblog/drafts/<?php echo $blogId ?>" class="draft">Drafts</a></li>
							</ul>
							<div class="boxBottom"></div>
						</div><!--End box-->
					</div><!--End sideBarContent-->
				<div class="clear"></div>
				</div><!--End sideBarOuter-->
			</div><!--End SideBar-->
			<div class="clear"></div>
		</div>
		<div id="footer">
		</div>
	</div>
</body>
</html>